package x.y.service;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.support.JdbcDaoSupport;

public class DefaultFooService implements FooService {
		
	private FooDao fooDao;
		
	  public Foo getFoo(String fooName) {
	    throw new UnsupportedOperationException();
	  }
	
	  public Foo getFoo(String fooName, String barName) {
	    throw new UnsupportedOperationException();
	  }
	
	  public void insertFoo(String str) {
		 
//		  fooDao.insertFoo("INSERT INTO syt (name) VALUES ('1_"+str+"')"); 
		//fooDao.insertFoo("INSERT INTO syt (name) VALUES ('2_"+str+"')"); 
		fooDao.insertFoo("INSERT INTO syt (id,name) VALUES ('"+str+"','tttss')"); 
		fooDao.insertFoo("INSERT INTO syt (id,name) VALUES ('"+str+"1','tttss')"); 
	  }
	
	  public void updateFoo(Foo foo) {
	    throw new UnsupportedOperationException();
	  }

	/**
	 * @param fooDao the fooDao to set
	 */
	public void setFooDao(FooDao fooDao) {
		this.fooDao = fooDao;
	}

	  

}